package com.cj.dao;

import com.cj.po.Dormrepair;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface DormrepairDao {
        /**
         * 进行分页查询
         */

        //获取总条数
        public Integer totalCount(@Param("r_id") Integer r_id, @Param("d_id") Integer d_id,
                                  @Param("d_dormbuilding") String d_dormbuilding, @Param("r_name") String r_name, @Param("reason")
                                          String reason, @Param("create_time") Date create_time, @Param("update_time") Date update_time);
        //获取用户列表
        public List<Dormrepair> getDormrepairList(@Param("r_id") Integer r_id, @Param("d_id") Integer d_id,
                                                  @Param("d_dormbuilding") String d_dormbuilding, @Param("r_name") String r_name, @Param("reason")
                                                          String reason, @Param("create_time") Date create_time, @Param("update_time") Date update_time, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);


        public List<Dormrepair> getAll();

        int addDormRepair(Dormrepair dormrepair);

        int deleteDormRepair(Integer r_id);

        int updateDormRepair(Dormrepair dormrepair);

        Dormrepair findDormRepairById(Integer r_id);
}
